WriteActionState
TheWriteActionState
method should write the undo action data into the specified storage-unit view object.
void WriteActionState ( in ODActionData actionState, in ODStorageUnitView storageUnitView);
actionState
- A byte array whose buffer contains the data previously logged by this part to allow it to redo the action.
storageUnitView
- A reference to a storage-unit view object where the action data is to be written to storage.
DISCUSSION
OpenDoc calls this method when it writes the undo action data to persistent storage. Your part'sWriteActionState
method will not be called in OpenDoc 1.0 due to the lack of a persistent undo model; it is provided here for compatibility with future versions of OpenDoc.OVERRIDING
When you subclassODPart
, you can override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely.EXCEPTIONS
kODErrDoesNotUndo
- The specified action is not an undo action of this part.
SEE ALSO
TheODActionData
type (page 898).
TheODPart::DisposeActionState
method (page 499).
TheODPart::ReadActionState
method (page 536).
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Implementing Undo" on page 258 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help